import {QuickBooleanWithNull} from "@/hooks/props";

export function createPropPanelBaseUIProps() {
  let properties = {
    ref: {
      type: 'string',
      ui: {
        label: '引用'
      }
    },
    label: {
      type: 'string',
      ui: {
        label: '标题'
      }
    },
    desc: {
      type: 'string',
      ui: {
        label: '描述',
        widgetConfig: {
          type: 'textarea'
        }
      }
    },
    hiddenLabel: QuickBooleanWithNull('隐藏标题'),
  }
  return {
    type: 'object',
    ui: {
      label: "UI"
    },
    properties
  }
}
